package com.sugon.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 备件到货记录
 * @author: YuXD
 * @since: 2023-07-14
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SparePartDeliveryRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 备件ID
     */
    private String spareId;

    /**
     * 订单生成时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date orderGenerateTime;

    /**
     * 预计到货时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date theoryArriveTime;

    /**
     * 实际到货时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date actualArriveTime;

    /**
     * 实际到货周期
     */
    private Long actualDeliveryCycle;

    /**
     * 采购数
     */
    private Integer purchaseQuantity;

    /**
     * 到场数
     */
    private Integer arriveQuantity;

    /**
     * 备件需求计划明细ID
     */
    private String needsItemId;

    /**
     * 入库记录ID
     */
    private String stockInRecordId;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
